import request from '@/utils/request'

// 查询团队成员列表
export function listGroup_relationship(query) {
  return request({
    url: '/ehr/group_relationship/list',
    method: 'get',
    params: query
  })
}

// 查询团队成员详细
export function getGroup_relationship(data) {
  return request({
    url: '/ehr/group_relationship/findOne' ,
    method: 'post',
    data:data
  })
}

// 新增团队成员
export function addGroup_relationship(data) {
  return request({
    url: '/ehr/group_relationship',
    method: 'post',
    data: data
  })
}

// 修改团队成员
export function updateGroup_relationship(data) {
  return request({
    url: '/ehr/group_relationship',
    method: 'put',
    data: data
  })
}

// 删除团队成员
export function delGroup_relationship(data) {
  return request({
    url: '/ehr/group_relationship/',
    method: 'delete',
    data: data
  })
}

